const state = () => ({navs: ['首页', '我的博客']}),
  mutations = {
    addNum(state) {
      state.navs.push(state.navs.length)
    }
  },
  actions = {
    add({commit}) {
      commit('addNum')
    }
  };
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
